package jfox.platform.organization.dao;
import java.util.List;

import jfox.platform.organization.entity.Department;
import jfox.platform.infrastructure.DataAccessObject;
/**
 * @author <a href="mailto:sheshengdian@gmail.com">sheshengdian</a>
 */

public interface DepartmentDAO extends DataAccessObject{
	    void insertDepartment(Department dpment);

	    int deleteDepartment(long id);

	    int updateDepartment(Department dpment);

	    Department getDepartmentById(long id);
	    
	    Department getDepartmentByCompany(long companyId);

	    List<Department> getAllDepartments();
}
